package com.basic.business.prodRel.mapper;

import com.basic.business.prodRel.domain.TProdRelDetails;
import com.basic.common.core.mapper.BaseMapper;

import java.util.List;

/**
 * 业务-商品关系明细Mapper接口
 *
 * @author zhaoxy_jn@163.com
 */
public interface TProdRelDetailsMapper extends BaseMapper<TProdRelDetails> {

    /**
     * 根据主表ID查询商品关系明细
     */
    public List<TProdRelDetails> getProdDetailsByMainId(String mainId);

    /**
     * 批量入库
     */
    public void batchInsert(List<TProdRelDetails> list);

    /**
     * 根据主表ID删除商品关系明细
     */
    public void delDetailsByMainId(String id);

    /**
     * 根据主表ID批量删除商品关系明细
     */
    public void delDetailsByMainIds(Object[] ids);

    /**
     * 获取正常状态商品关系
     */
    public List<TProdRelDetails> getNormalProdRel();
}
